m = int(input())
s = 1.0
for i in range(2, m):
    s -= 1/(i*i)
print("%.6f" % (s))
